package com.wocai.jrt.orgadmin.flow.service.impl;

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import com.wocai.jrt.orgadmin.flow.dao.FlowLogDao;
import com.wocai.jrt.orgadmin.flow.model.FlowLog;
import com.wocai.jrt.orgadmin.flow.model.FlowLogBean;
import com.wocai.jrt.orgadmin.flow.service.spi.FlowLogService;
import com.vteba.service.generic.impl.MyBatisServiceImpl;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;

/**
 * 流程日志相关的service业务实现。
 * @author yinlei
 * @date 2016-3-17 17:18:35
 */
@Named
public class FlowLogServiceImpl extends MyBatisServiceImpl<FlowLog, FlowLogBean, String> implements FlowLogService {
	// 添加了方法后，记得改为private
	protected FlowLogDao flowLogDao;
	
	@Override
	@Inject
	public void setBaseDao(BaseDao<FlowLog, FlowLogBean, String> flowLogDao) {
		this.baseDao = flowLogDao;
		this.flowLogDao = (FlowLogDao) flowLogDao;
	}

	@Override
	public List<FlowLog> myPagedList(FlowLog fl) {
		return flowLogDao.myPagedList(fl);
	}

	@Override
	public Integer updateLogState(String id) {
		return flowLogDao.updateLogState(id);
	}
}
